package com.ruoyi.ems.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工信息对象 staff
 * 
 * @author sh
 * @date 2023-12-12
 */
@Data
public class Staff extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 员工名称 */
    @Excel(name = "员工名称")
    private String name;

    /** 部门id */
    @Excel(name = "部门id")
    private String departmentId;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 员工id */
    @Excel(name = "员工id")
    private String userId;

    /** 积分 */
    @Excel(name = "积分")
    private Integer score;
    // 用来做修改的临时积分
    private Integer scoreTmp;
    // 修改人名称
    private String reviser;
    private String phone;

    /**
     * 更新分数的说明
     */
    private String scoreExplainInfo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDepartmentId(String departmentId) 
    {
        this.departmentId = departmentId;
    }

    public String getDepartmentId() 
    {
        return departmentId;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setScore(Integer score)
    {
        this.score = score;
    }

    public Integer getScore()
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("departmentId", getDepartmentId())
            .append("avatar", getAvatar())
            .append("userId", getUserId())
            .append("score", getScore())
            .toString();
    }
}
